<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>实例</title>
</head>
<body>
    <p>点击以下链接查看结果：</p>
    <a href="javascript:void(alert('Warning!!!'))">点我！</a>
</body>
</html>